// @ts-ignore
/* eslint-disable */
import { request } from 'umi';
/** 获取 线索报送  - 选题计划 POST */
export async function getCuesTopicPage(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<CountyData.TopicPage[]>>('/county/cues/topic/page', {
        method: 'POST',
        data: options || {},
    });
}
/**获取 线索报送  - 选题计划 详情  POST */
export async function getCuesTopicDetails(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<CountyData.TopicDetails>>('/county/cues/topic/details', {
        method: 'POST',
        data: options || {},
    });
}



/** 获取 线索报送  - 选题计划 提交 分页  POST */
export async function getCuesSubmitPage(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<CountyData.SubmitPage[]>>('/county/cues/submit/page', {
        method: 'POST',
        data: options || {},
    });
}
/** 获取 线索报送  - 选题计划 提交 详情  POST */
export async function getCuesSubmitDetails(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<string>>('/county/cues/submit/details', {
        method: 'POST',
        data: options || {},
    });
}
/**
 * 收录库
 * @param options
 * @returns
 */
export async function selectAdopt(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<CountyData.AdoptForAccountVo>>('/county/cues/adopt/select', {
        method: 'POST',
        data: options || {},
    });
}


/** 获取 线索报送  - 选题计划 提交 分页  POST */
export async function getCuesActivePage(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<CountyData.ActivePage[]>>('/county/cues/active/page', {
        method: 'POST',
        data: options || {},
    });
}
/** 获取 线索报送  - 选题计划 提交 详情  POST */
export async function getCuesActiveDetails(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<CountyData.ActiveDetails>>('/county/cues/active/details', {
        method: 'POST',
        data: options || {},
    });
}
/**获取 主动报送 组织 列表 POST */
export async function treeOrganization(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<CountyData.Organization[]>>(
        '/county/cues/active/organization/tree',
        {
            method: 'POST',
            data: options || {},
        },
    );
}

/**获取 选题线索 报送线索 组织 列表 POST */
export async function searchTreeOrganization(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<CuesSubmitData.Organization[]>>(
        '/county/cues/submit/search/organization/tree',
        {
            method: 'POST',
            data: options || {},
        },
    );
}


/**获取区县统计数据*/
export async function getCountyAnalysis(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<CountyData.Analysis>>('/county/cues/analysis', {
        method: 'POST',
        data: options || {},
    });
}

/**
 * 收录库 获取 收录人名单
 * @param options
 * @returns
 */
export async function getAdoptInstructAccountPage(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<CountyData.InstructAccountVo[]>>(
      '/county/cues/adopt/instruct/account/page',
      {
        method: 'POST',
        data: options || {},
      },
    );
  }

  /** 线索报送  - 录用列表  POST */
export async function getAdoptForAccountList(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<CountyData.AdoptForAccountVo[]>>(
      '/county/cues/adopt/account/list',
      {
        method: 'POST',
        data: options || {},
      },
    );
  }